import React from "react";
import {HashRouter, Redirect, Route, Switch} from "react-router-dom";
import Home from "../views/home/Home";
// import RemoteHome from "../views/remote/RemoteHome";
import LocalHome from "../views/local/LocalHome";

export default function IndexRouter() {
    return (
        <HashRouter>
            <Switch>
                <Route exact path="/" render={() => <Redirect to="/home"/>}/>
                <Route path="/home" component={Home}/>
                <Route path="/localHome" component={LocalHome}/>
                {/*<Route path="/remoteHome" component={RemoteHome}/>*/}
                <Route path="*" render={() => <Redirect to="/home"/>}/>
            </Switch>
        </HashRouter>
    )
}